//**************************************************************//
//**************************************************************//
//*                                                            *//
//*  Copyright (C) 1998 Virtue 3D, Inc.  All Rights Reserved.  *//
//*                                                            *//
//*  File:	   VR2Vrml.h                                       *//
//*  Content:  Header file for saving a VR model as a VRML97   *//
//*            file                                            *//
//*  Date:     June 17, 1998                                   *//
//*                                                            *//
//**************************************************************//
//**************************************************************//
#ifndef _WRL_H_
#define _WRL_H_

#include <iostream>
#include "vr.h"
#include "vrAnimationNode.h"

typedef int (*parseErrorCallBack)(char* message,int line,int column,char* file_name,char* last_token);
typedef int (*reportCallBack)(char *message,int line,int column,char* file_name);
typedef int (*decompressCallBack)(char *file_path_in,char* tmp_dir,char* file_path_out);

int VR2Vrml(const VRNode* node,char* fname);
VRNode* Vrml2VR(char* fname,parseErrorCallBack onError=NULL,reportCallBack onWarning=NULL,decompressCallBack onDecompress=NULL);

int removeEmptyShapes(VRNode* root,VRMFNode& routes);

#endif